package com.example.administrator.easy.view;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.administrator.easy.*;
import com.example.administrator.easy.view.MainActivity;
import com.example.administrator.easy.application.MyApplication;

//登录页面
public class LoginActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
    }

    public void click(View view){
        switch (view.getId()){
            case R.id.login_btn1://登录
                //TODO
                MyApplication a = (MyApplication) getApplication();
                a.setLogin(true);
//                startActivity(new Intent(this, MainActivity.class));
                finish();
                break;
            case R.id.login_btn2://注册
                break;
        }//
    }
}
